<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@page import="com.AAL.Model.Account"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../css/960.css" />
<link rel="stylesheet" type="text/css" href="../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../css/text.css" />
<link rel="stylesheet" type="text/css" href="../css/form.css" />
<link type="text/css" href="../css/smoothness/ui.css" rel="stylesheet" />
<link type="text/css" href="../js/wysiwyg/jquery.wysiwyg.css"
	rel="stylesheet" />
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/wysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$('#wysiwyg').wysiwyg();
	});
</script>
<script type="text/javascript" src="../js/blend/jquery.blend.js"></script>
<script type="text/javascript" src="../js/ui.core.js"></script>
<script type="text/javascript" src="../js/ui.sortable.js"></script>
<script type="text/javascript" src="../js/ui.dialog.js"></script>
<script type="text/javascript" src="../js/effects.js"></script>
<sj:head jqueryui="true" jquerytheme="cupertino" />
<%
	Account myAccount = null;
	int nhanvien = 0;
	if (session.getAttribute("myAccount") != null) {
		myAccount = (Account) session.getAttribute("myAccount");
		nhanvien = myAccount.getAccountID();
	}
%>

<title>Insert title here</title>
</head>
<body>

<h1 class="content_edit">THÊM MỚI MỘT HÓA ĐƠN</h1>
<s:form id="edit" method="post" action="CoordinatorCreateNewPurchase">
	<p class="step">Màn hình 1(Thông tin hóa đơn)</p>
	<table>
		<tr>
			<td class="label"><s:textfield label="Mã hóa đơn"
				cssClass="smallInput wide" name="purchaseInvoice.PurchaseInvoiceID" /></td>
		</tr>
		<tr>
			<td class="label"><s:textfield label="Mã hợp đồng"
				cssClass="smallInput wide" name="purchaseInvoice.PurchaseContract" /></td>
		</tr>
		
		<tr>

			<td class="label"><s:textfield label="Nhân viên lập hóa đơn "
				cssClass="smallInput wide"
				name="purchaseInvoice.employeeByCoordinator.account.AccountID"  /></td>
		</tr>
		<tr>
			<td class="label"><s:textfield label="Nhân viên xác nhận"
				cssClass="smallInput wide" name="purchaseInvoice.EmployeeManager.account.AccountID" /></td>
		</tr>
		<tr>
			<td class="label"><sj:datepicker label="Ngày lập hóa đơn"
				readonly="true" cssClass="smallInput"
				name="purchaseInvoice.writingDate" /></td>
		</tr>
		<tr>
			<td class="label"><s:textfield label="Tiền ban đầu"
				cssClass="smallInput wide" name="purchaseInvoice.PreTotalMoney" /></td>
		</tr>
		<tr>
			<td class="label"><s:textfield label="Thuế"
				cssClass="smallInput wide" name="purchaseInvoice.Tax" /></td>
		</tr>
		<tr>
			<td class="label"><s:textfield label="Giảm giá"
				cssClass="smallInput wide" name="purchaseInvoice.Discount" /></td>
		</tr>
		<tr>
			<td class="label"><s:textfield label="Tổng tiền"
				cssClass="smallInput wide" name="purchaseInvoice.TotalMoney" /></td>
		</tr>
		<tr>
			<td class="label"><s:textfield label="Trạng thái"
				cssClass="smallInput wide" value="Tạo mới/Cập nhật" readonly="true" />
			<s:hidden name="purchaseInvoice.statusOfInvoice.StatusOfInvoiceID"
				value="1"></s:hidden> <s:hidden name="purchaseInvoice.IsReceived"
				value="0"></s:hidden> <s:hidden
				name="purchaseInvoice.IsWritingWarehousingVotes" value="0"></s:hidden>


			</td>
		</tr>
		<tr>
		<s:submit value="Add Contact" align="center"/>
	
		</tr>

	</table>
	<!-- BUTTONS -->


	<!-- 
       	<s:url id="createNew" action="">
				<s:param name="catalogName" value="%{catalogName}"></s:param>
				<s:param name="idProduct" value="%{idproduct}"></s:param>
				<td>
			</s:url>
		-->






</s:form>
</body>
</html>